package o;

import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.forum.posts.api.PostProfiles;
import com.huawei.appgallery.forum.posts.request.GetPostProfilesResponse;
import com.huawei.hmf.annotation.ApiDefine;
import o.brc.e;

@ApiDefine(uri = bzj.class)
public class bzm implements bzj {
    public fjo<PostProfiles> ˏ(long j) {
        final fjx o_fjx = new fjx();
        bzp o_bzp = new bzp();
        o_bzp.ˎ(j);
        ((brc) fho.ˏ().ˋ("Base").ॱ(brc.class)).ˋ(o_bzp, new e<bzp, GetPostProfilesResponse>(this) {
            final /* synthetic */ bzm ˋ;

            public /* synthetic */ void ˋ(Object obj, Object obj2) {
                ˎ((bzp) obj, (GetPostProfilesResponse) obj2);
            }

            public /* synthetic */ void ˏ(Object obj, Object obj2) {
                ˋ((bzp) obj, (GetPostProfilesResponse) obj2);
            }

            public void ˋ(bzp o_bzp, GetPostProfilesResponse getPostProfilesResponse) {
            }

            public void ˎ(bzp o_bzp, GetPostProfilesResponse getPostProfilesResponse) {
                if (getPostProfilesResponse != null && getPostProfilesResponse.getResponseCode() == 0 && getPostProfilesResponse.getRtnCode_() == 0) {
                    o_fjx.ॱ(getPostProfilesResponse.ˊ());
                } else {
                    o_fjx.ॱ(null);
                }
            }
        });
        return o_fjx.ॱ();
    }

    public dsb ॱ(LinearLayout linearLayout, bzh o_bzh) {
        dsb o_bzv = new bzv();
        o_bzv.ॱ(o_bzh);
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
        View ˎ = o_bzv.ˎ(linearLayout.getContext());
        if (ˎ != null) {
            linearLayout.addView(ˎ, layoutParams);
        }
        return o_bzv;
    }
}
